home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-03
/
qbasicpg.zip
/
DO-2.BAS
< prev
next >
Wrap
BASIC Source File
|
1989-08-31
|
358b
|
16 lines
' DO-2.BAS
' This program demonstrates a DO WHILE loop. Notice
' that the condition is at the bottom of the loop.
CLS
INPUT "Please enter a number between 10 and 15: ", userNum%
PRINT
DO
COLOR userNum%
PRINT "The value of userNum% is"; userNum%
userNum% = userNum% - 1 ' decrement userNum% by 1
LOOP WHILE userNum% >= 10